package com.bit.cfdi.web.dao.impl;

import java.sql.Connection;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import com.bit.cfdi.web.dao.UtilDAO;

@Repository
public class UtilDAOImpl extends HibernateDaoSupport implements UtilDAO{

	protected Logger log = LogManager.getLogger(this.getClass().getName());

	@Autowired
	public void init(final SessionFactory sessionFactory) {
		setSessionFactory(sessionFactory);
	}
	

	@Override
	public Connection getConnection() {
//		return getHibernateTemplate().getSessionFactory().getCurrentSession().connection();
		return null;
	}

}
